package io.adrainty.gbatis.util;

import java.io.InputStream;

/**
 * @author adrainty
 * @version v1.0.0
 * @since 2024/1/14 22:11
 */
public class ResourceUtil {

    private ResourceUtil() {}

    /**
     * 从类路径中加载资源
     * @param resource 资源文件
     * @return 文件流
     */
    public static InputStream getResourceAsStream(String resource) {
        return ClassLoader.getSystemClassLoader().getResourceAsStream(resource);
    }

}
